import http from '../utils/http'

export const userRegister=(username:string,password:string)=>{
	return http.post('/users',{
		username,
		password
	})
}

export const userLogin =(username:string,password:string)=>{
	return http.post('/login',{
		username,
		password
	})
}